package com.uphone.kingmall.fragment.my;

import android.os.Bundle;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.lzy.okgo.model.HttpParams;
import com.uphone.kingmall.adapter.LiuYanReplyAdapter;
import com.uphone.kingmall.base.BaseListFragment;
import com.uphone.kingmall.bean.LiuYanReplyBean;
import com.uphone.kingmall.utils.MyUrl;

/**
 * <pre>
 *     author : radish
 *     e-mail : 15703379121@163.com
 *     time   : 2019/5/6
 *     desc   :
 * </pre>
 */
public class LiuYanReplyFragment extends BaseListFragment<LiuYanReplyBean, LiuYanReplyBean.DataBean> {


    public static LiuYanReplyFragment newInstance() {

        Bundle args = new Bundle();

        LiuYanReplyFragment fragment = new LiuYanReplyFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onResume() {
        super.onResume();
        loadData(1);
    }

    @Override
    protected LiuYanReplyBean getBeans() {
        return new LiuYanReplyBean();
    }

    @Override
    protected HttpParams getParams() {
        HttpParams params = new HttpParams();
        params.put("page", page);
        params.put("limit", 10);
        return params;
    }

    @Override
    protected String getUrl() {
        return MyUrl.lookFeed;
    }

    @Override
    protected void itemClick(BaseQuickAdapter adapter, View view, int position) {

    }

    @Override
    protected BaseQuickAdapter initAdapter() {
        return new LiuYanReplyAdapter(0);
    }

    @Override
    public void initView(View view) {

    }
}
